﻿<div id="login">
    <ul>
        <li><a href="ts3server://109.239.145.121/?port=26909">Teamspeak</a></li>
        <li><a href="http://battlelog.battlefield.com/bf4/servers/show/pc/dba56417-7c15-4a51-ab00-de1ace079df6/" target="_blank">Bf4 - Serveur France Triple</a></li>
        <li><a href="http://battlelog.battlefield.com/bf3/platoon/2832655391300723144/" target="_blank">Bf3 FranceTriple</a></li>
        <li><a href="http://battlelog.battlefield.com/bf3/platoon/2832655241300818716/" target="_blank">Bf3 LaBaff</a></li>
        @if (Request.IsAuthenticated)
        {
            <li>@Html.ActionLink(String.Format("_{0},_{1}_", CloudFranceTriple.WebRole.Properties.Resources.LoginHello, User.Identity.Name), "Manage", "Account", routeValues: new { area = "" }, htmlAttributes: new { @class = "username", @title = CloudFranceTriple.WebRole.Properties.Resources.AccountManageTitle })</li>
            if (User.IsInRole("RoleFans"))
            {
            <li>@Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.LoginRecruit, "Index", "Recruit", new { area = "Member" }, new { @class = "username", @title = CloudFranceTriple.WebRole.Properties.Resources.LoginRecruit })</li>
            }
            <li><a href="javascript:document.getElementById('logoutForm').submit()">
                @using (Html.BeginForm("LogOff", "Account", new { area = "" }, FormMethod.Post, new { id = "logoutForm" }))
                {
                    @Html.AntiForgeryToken()
                    @CloudFranceTriple.WebRole.Properties.Resources.LoginLogOff
                }
            </a></li>
        }
        else
        {
            <li>@Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.LoginRegisterButton, "Register", "Account", routeValues: new { area = "" }, htmlAttributes: new { id = "registerLink" })</li>
            <li>@Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.LoginLoginButton, "Login", "Account", routeValues: new { area = "" }, htmlAttributes: new { id = "loginLink" })</li>
        }
    </ul>
</div>
